package org.ctstudio.common.h2;

import java.sql.Time;
import java.sql.Date;

public class Functions {
  public static Long time2Long(Time time) {
    return time == null ? null : time.getTime();
  }

  public static Time long2Time(Long time) {
    return time == null ? null : new Time(time);
  }

  public static Date long2Date(Long time) {
    return time == null ? null : new Date(time);
  }

  public static java.util.Date long2DateTime(Long time) {
    return time == null ? null : new java.util.Date(time);
  }
}
